let date = {};

date.getDate = function() {
    let d = new Date();
    let year = d.getFullYear();
    let month = d.getMonth() + 1;
    let day = d.getDate();
    let monthString = (month < 10) ? '0' + month.toString() : month.toString();
    let dayString = (day < 10) ? '0' + day.toString() : day.toString();
    return year.toString() + '-' + monthString + '-' + dayString;
}

export default date;
